added condition in 1..1 if start and end are same nodes