subtitles function improved