update logic conditions