added function that computes simulated score