inventory now prints correctly