forgot self for function definition