Ok, he has a 100 amp main disconnect, a 100 amp breaker box, and intends
to add a 40 amp sub panel. This doesn't add up, if I understand you
correctly. The main disconnect seems undersized.
Since he intends to repeat this with a sub panel for a pool, a 200 amp
main disconnect may be in order.