command and duplicate corrections