merge filling in layout