fix rest format