fix issue on files output and input
fix issue