typesetting works but puts the biggest slack on the first line, it should put it at the last line