removed unused line
changed back constant to linear.