fixed bug with function name