pass subtitle in write_cc_buffer from general loop
seprated output function