cosmetic changes to update, delete functions of api