cosmetic simplification for totalAmount setting