added production of ref vectors as well