fixed bef problems