fixed error because self not defined