replace alphabet with iterator