add new functions
add new function for generating html file