added score calculating