testing the api using this