added pagination fields to response