write the value instead of checking