added unique constraint