update add plan function