renamed end_along_edge to end_align_edge