handle true/false in the applyMap