ammended the api responses