plan insert procedure