logic modify