added conditional for subtitle