insert point logic