priority based list is working