change flash to flash.new