refactoring: use pair instead of string array
corrected page order