changes to tst.c