optimize analysis