template function collection like pagination,....