simplify iterator pipeline