minimizing design and codes