readded subtitle code after merge.