add common helper
pagination phase1