refactors all files