fix a typo
use attributes
add attributes & code format