first path then check