adding items to correct place in list