normalizing api format