selected line becomes the result