changing shouldSkip to skip_function