improving updating of items
fix error