shortened the code for the api