before path correction