inventory thread