add animationSpeed variable to display