replaces value with constant