restructure block layout