refactor kt