added uniqueness constraint to commit