get tv function