removing all code except pagination