update simulation inference and add an example