inline funtions headers rearranged