commit by alex

update the logical method