throttle to control cpu usage