fixed everything, added grand total earnings