using HBM to fit simulation data