bugfixed typos in each()