changed from sprite to object