modified testa/main to include additional functions