make the basescore algorithm better