sides computataion deals with borders.