refactor codo