switch map types