get paginate to work