added score calculation to import function