update flashes