added score function to myvars