simplifying layout rules