inventory print code cleanup