fixed a bug for bfprt
change lambda