fix passing of kind