remove print to console
remove print to console
improve file input/output