added missing random text generation