swtiched from setInterval to requestAnimation"