removed unused code from original throttle plugin