links up words into lines