minor change in deteciting insert point