Clarified buildMap definition