modified vec function to indicate where the transformation will take a place.