rewrite kafra