totalAmount reset