logic edits