use typedef for location set