       @data.x[idx] = xValue - @smallestX
 
     # remove outliers and normalize
-    @removeOutliers(3)
-    @data.y = @normalize(@data.y)
-
-
-
-
-
-    # # normalize
-    # yNorm = []
-    # yMin = Math.min @data.y...
-    # yMax = Math.max @data.y...
-    # for yValue, i in [ @data.y... ]
-    #   yNorm[i] = (+yValue-yMin)/(yMax-yMin)
-    # @data.y = yNorm
-
-
-    # normalize y values to unity mean
-    yMean = @mean(@data.y)
-    console.log 'yMean: ', yMean
-
-    # for yValue, i in [ @data.y... ]
-    #   @data.y[i] =  (@data.y[i]-@smallestY) / (@largestY-@smallestY)
-      # console.log 'y: ', @data.y[i]
-
-    # for yValue, i in [ @data.y... ]
-    #   @data.y[i] = @data.y[i] / yMean
-    #   console.log 'y: ', @data.y[i]
-
+    @removeOutliers(nsigma=3)
 
     # update min/max values
     @smallestX = Math.min @data.x...
     @smallestY = Math.min @data.y...
     @largestX = Math.max  @data.x...
     @largestY = Math.max  @data.y...
-
-  normalize: (values) ->
-    vMax = Math.max values...
-    vMin = Math.min values...
-    vMean = @mean(values)
-    v_norm = []
-    for v, i in [ values... ]
-      v_norm[i] = (v-vMin)/(vMax-vMin)
-      # v_norm[i] = v_norm[i] / vMean
-    return v_norm 
 
   disableMarking: ->
     @markingDisabled = true

      else
        x_new.push @data.x[i]
        y_new.push @data.y[i]
    @data.x = x_new
    @data.y = y_new

  std: (data) ->
    mean = @mean(data)

    window.marks = @marks
    @canvas.addEventListener 'mousedown', (e) => @addMarkToGraph(e)
    @canvas.addEventListener 'touchstart', (e) => @addMarkToGraph(e)

  removeOutliers: (nsigma) ->
    mean = @mean(@data.y)
