why do you need to pass two vectors here?