starting to replace old animation code