pageRange now uses a property instead of local variable