commented out the user errors as they are not being handled, set the charge to 0 instead.