coordinate animation code improvement