set the messages for the constrains