changed Toss logic