changes to mergevec.py