changes in Tek
avoid malloc, use new
avoid malloc, free, realloc
avoid free