updating path straightening