modified te.sh