cleaned up inventory service definition