i was setting a global count variable and looping through a directory path in the most horrendous way possible spread across multiple functions, redundantly formatting and checking for two dozen hard-coded values with a bunch of or statements. also it was recursive