add feature of set custom file name.
change specification of if statement.