implemented richi.