- added exception on optimize