delete requestAnimationFrame code