remove unnecessary type
add some documentation