converted pagination to rst