fixed function definition in API docs