instead of passing function, pass the function name as a string