var totalamount added