score calculation and visualization