working mallet optimizer