correct computation of attributes for walls