fix fclose
binsearch