formats and updates api