move file write a method