rewrite whole pager