stable optimizeParameters #1