reorder functions to make them easier to find