reordering commands