custom page count, reworked matches