opt problem setup
working