updates file