add missing arg in add_val definition