use less code by initializing spaceVect Vector