add variant of specialize_uniquely