bug in function names