move throttle code into new method