translated raw source data processing to ff approach