working on the api format