updated risk score to calculate correctly