Correcting revenue phase, part 1 (see TO DO)