check if start and/or end point are legal