removed surplus code in invoice class