add yankring and rainbow modifed code