add print to file function
pull other's modify