better start and end points for edges