updated from knot3