added calculation of L for rectangles