sets up for doing animation