changing map to vector