bit_freq_input add fclose