[IMP]planner: imporve code.