first part of line editor