reorganize blocks