mod should be generic : it also works for string, for instance