edit some logics.