fixed bug caused by renaming a function