added method to record TIS
bug fix : type cast is done correctly