fix name of function