check path code