added score computation part