bound this to anon func called by requestAnimationFrame