fixed function name wrong error