change dbh and teng to be global variable