pages should start at 0, not 1