updated printing to file