removing debug code
fix off-by-one when displaying page