further tweaking of score calculating