trying to solve issues with animations