code clear up

remove unnecceory fclose