change condition to string