planPath was implemented