fixed name of function call and a forgotten self parameter