debugging the do_throttle_code