added stuff for animation