having its end points on l and m