rec format into mongo format