updated path code