something was wrong in the addToRing function