the tense of the subjunctive in subordinate clauses depends on the tense of the main clause; primary sequence (pres or fut) main clause + before = perf subj; primary sequence main clause + same time/after = pres subj; historic sequence (imperf, perf, pluperf) main clause + before = pluperf subj; historic sequence main clause + same time/after = imperf subj