old animation script for reference