fixing name of function