added specification for pagination