use sorted list