added constraint for student