added line to calculate total revenue