added remaining api calls function