fix. ensure that all timedelta calls have kwargs for timedifference casted to int (theshold)