should you be clearing the rows vector here?