halfway through building invoices with crap code