modify print to file