remove unnecessary processing in building the layout