had been doing (going on before then) (B1 Grammar)

You know had + the past participle for an earlier past action (the bus had left). To show an action that was going on for a while before another past moment, use had been + the -ing form. It puts how-long in the spotlight.

had been + the -ing form

the evidence you could see, back then

This is the same idea as have been doing for the evidence you can see — just moved back. Use had been + the -ing form to explain the evidence you could see at a past moment: the activity had stopped just before, but the sign it left was still there. Compare: Her eyes are red — she has been crying (evidence now) · Her eyes were red — she had been crying (evidence back then).

hadn't been / Had you been ...?

For the negative, use hadn't been + the -ing form. To ask, put Had first: Had + person + been + the -ing form. (hadn't = had not.)

had done or had been doing?

Both look back before a past moment, but they spotlight different things. had + the past participle points to something finished — a completed result, or how many. had been + the -ing form points to the activity itself — still going on at that moment, or how long it had lasted.