conditional builder in MapBuilder