I have no idea what tense should I use after the "when clause" when the first part of a sentence is in present perfect. Should I use past simple (continuous) or present perfect (continuous)?
I've done this many times before when I was helping my uncle.
I've done this many times before when I've been helping my uncle.
I have done a lot of crazy things when I was with my friends.
I have done a lot of crazy things when I've been with my friends.
Which versions are correct?