changed spawn to vector