in the middle of reordering logic