fixed issue with vector reallocation: restored streem manipulation