file modified using function