refactor kontrol