changing names of files. Removing redundant codes in codes