optimize for stability