animation 2 working with input