Mutatis mutandis

Mutatis mutandis (Latin): the necessary changes being made; with due alteration of details.