setting up a planner