remove static each/map function: use range instead; added each method