fixing timedelta usage