modified sim-bpred.c little bit