minor changes. started working on trying to make a function to correct any deviations from the path