adding uniqueness constraint to link