added lottery time handler