refactoring ko extension