rename fn var to f