forgot to mention improved animation code