clean up inventory script