changing map to list