logic for scaling a request