Added gettotalvalueterms