added CDSELECTOR macro