delete opt
add an option '-f' for the figure output