In my defense .... When a child CHOOSES to pee/poo in his pants cause he knows the difference and knows the triggers within his body that tells him he has to use the bathroom that is not an accident, that is a choice. The same as a when child takes a toy from another child, or pushes another child or throws sand on his friend .... that is a choice and you would give a child a tine out for doing that so why not for defecating in his pants when he clearly knows how to do it. The original poster said "he knows when it's coming cause he goes and hides and then demands to be changed". He knows what he is doing is wrong but he's doing it anyway so punish him for it.