modify sortedlist