add yen algorithm