working on speeding up animation