animation logic small modify