bf - legacy code