add _opt prefix for inner function #25