added payout calculations for #1