used Iterator for faster processing