conditional map creation