modified for kai