reformat code
pagination - fix