working on animations and statemachine