added raffle logic