fix to send request to api