returning array but list on pagination helper