replace value with constant