refractor all files