added priority to listitems.