interactive test code added