refactor all files