optimizer debugged