more stuff on optim