adding check for distance from ancho