fix of function definition