code reordering