added selecting of lines