complete R package and fix FC=0 problem