added one positive check for the edge in interpolation