rearranging blocks