do we need pages array?