altered reduction to allow for retries