in case minpage and maxpage are the same, only one page is printed now