remove unused variable
add comment/doxygen doc