added total to fee calculation