fixes function definition.