add sendRequest method and comment