minor updates in files method