fix for d=1 in tt_shift, etc