fixed bug in extractBF