added totalterminal