another revision to page sizing logic