added new function to get most likely planstep