adjust function for update bf