then why i am getting the contstraint errors?