added return statement to f1