renamed the door count to index to make a bit more sense