check equal path