Passing pi to f and u