change condition and unit test