tweak logic of animating