update logic condition