export function directly and reformat