add write file method