added typedef for location enum