working on TC detection