added some logic to split the door count in half