undo the code to get plan