use opt object for function call
first output success!