updated score() with new function names