removed a debug for loop in request function