remove constraint in value and change back to c++