made animations functional