get_knt into a method