moved stackgen to vectorgen