made pagination bulletproof because John Nelson made me self-concious about its bugs