refactoring deque_init pages.