error solved of total amount