fixed typo in badfunctions