codes for RFI project