tidied the item counting a tiny bit