simplify mem iterator