added peak
intersections x fixed