list range instead of using iterator in some cases