modify function definition