diagram uniqueness implemented