used animStateMachine framework