function parameters must be converted to pointer of functions