adding conditional map transform