added kind kwarg