Replacing variable with constant