replaced ob function in bad_clean() with variable