added print to file