saving method on filename