added TV logic