make sure to copy working tmp vectors