polish code of TPaginator