changed to opts