works on win32

std::iterators weren't used correctly