changing type to kind