added diff based scoring.