rf algo
merge fix