diff --git a/ETA.py b/ETA.py
index 9d4ed13..234b21c 100644
--- a/ETA.py
+++ b/ETA.py
@@ -404,7 +404,7 @@ if calibration != None:
         'first': 3 ,
         'last':  20,
     }
-    first , last = wave_calib.get_extremities( peakless_up , peaks_up , mean_up )
+    first , last = wave_calib.get_extremities( peakless_up , peaks_up )
     up    = {
         'first': first,
         'last' : last ,
diff --git a/wavelength_calibration.py b/wavelength_calibration.py
index 0965ce7..9402c07 100644
--- a/wavelength_calibration.py
+++ b/wavelength_calibration.py
@@ -22,7 +22,7 @@ def remove_peaks( signal , peaks ):
 
     return sig.medfilt( peakless_signal , 111 )
 
-def get_extremities( signal , peaks , temp ):
+def get_extremities( signal , peaks ):
     """
     It's possible to have an idea of the part the spectrum begins with the
     small large peak at the start of it, the peak at 3810 A should be inside