fix name of function to be part of a class