another code style refine, thanks to @sept