improve the pagination of the text