fixed reference to old opt func