Update 8.27

Optimize output
Simplify codes