modified setFDFRMode