add check whether the point is in origin data