minor changes of inputs for score function