a pointer with map and flag