copying vector for gradient stuff