measure from the edge