add subtitle type check