added save function for saving predicted path