minor code cleanup in bf example