newvector should be a bool