small change
added item checks
removed the item exists check as it didn't work