It's better to use ++it instead of it++ for iterators