reconstruct is_different function