two types pagination