moving createVector out of object file, working on ref layout