remove unnecessary keyframes and animations