used selection on line to reduce undo stack to one step