create save to file method but not used