and adjust the logic accordingly
and adjust the logic accordingly