make listpages more efficient