pluperfect

perfect with respect to a temporal point of reference in the past. For example, in ‘He had done it when I came’, had done is pluperfect in relation to came since the action was brought to a close before I came.