corrected path code