added variables for animation