changing file writer