diff --git a/geomagio/api/ws/DataApiQuery.py b/geomagio/api/ws/DataApiQuery.py
index 5dd2102a5030477e5cf819f160853b7770b1c30f..9f5217e09a7707913c26cdbb37230b770c83f6d3 100644
--- a/geomagio/api/ws/DataApiQuery.py
+++ b/geomagio/api/ws/DataApiQuery.py
@@ -134,7 +134,6 @@ class DataApiQuery(BaseModel):
             logging.warning(
                 "Sampling period is None. Default value or further processing needed."
             )
-            # self.sampling_period = 0.0
 
         else:
             samples = int(
diff --git a/geomagio/api/ws/filter.py b/geomagio/api/ws/filter.py
index 5d5ae85b1f0c43bc6ef98069d6c090403143679b..1f288a6ef89b00cf9bef8fb2cd01fa3996f484bb 100644
--- a/geomagio/api/ws/filter.py
+++ b/geomagio/api/ws/filter.py
@@ -1,9 +1,7 @@
 from typing import List, Union, Optional
 from fastapi import Query
-from obspy.clients.fdsn.header import FDSNNoDataException
-from obspy import UTCDateTime, Stream, Trace
-from ... import TimeseriesFactory, TimeseriesUtility
-import math
+from obspy import  Stream
+from ... import TimeseriesUtility
 import numpy as np
 from .DataApiQuery import (
     DEFAULT_ELEMENTS,
@@ -13,7 +11,6 @@ from .DataApiQuery import (
     SamplingPeriod,
 )
 from .FilterApiQuery import FilterApiQuery
-from ...algorithm.FilterAlgorithm import STEPS
 from ...algorithm import FilterAlgorithm
 import logging as logger
 from .data import get_data_factory