i think adding a this.pages breaks it