added scoring function: doesn't work