restore constraints