added .to_i to paging calls for correct string parsing