make value optional in get_html and removed redundant assignment