v3.0, output bug fixed