change variable name from f to fn for function pointers