fixed function name bug