optimizing cell design