Use reference for iterator