completed checking words iteration