refactord request.send