diff --git a/geomagio/Controller.py b/geomagio/Controller.py
index b6d768b30a6032f499c0e433cb764646209a120f..b1d4302fa45ebf277891a528af30e672e7c3a1cc 100644
--- a/geomagio/Controller.py
+++ b/geomagio/Controller.py
@@ -186,10 +186,10 @@ class Controller(object):
                 timeseries=timeseries, renames=options.rename_input_channel
             )
         processed = algorithm.process(timeseries)
-        # trim if --no-trim is not set
         if options.output_interval in ["hour", "day"]:
             starttime = processed[0].stats.starttime
             endtime = processed[0].stats.endtime
+        # trim if --no-trim is not set
         if not options.no_trim:
             processed.trim(starttime=starttime, endtime=endtime)
         if options.rename_output_channel: