when write
add type