check isomorphic