added a var for the kind