self = this in animation timer funciton