fixed error adds and deduct