update to account for pagination