replace instances of kts:kte with 1:Nlevels