refactor kodu