TERMI check function added