he remembered how the captain had patted him on the shoulder when the brigade departed , and how the simple gesture had filled him with a sense of affiliation , as if for the first time he deserved his place among the men .