clean up read file