finishing the api