removed makeVector function