optional mean subtraction