reorder head elements