reorder functions so default is first