added option for pagination type (typo)