optimized for clean and dirty page selection