added union to reach double vectors individually
added comments