workin on planner functions