moved credits to inventory class