working on aync function for planner