correct version of are_same