updated makePlan