remove constraints and related code