remove the if when changing the value