added endpoint regression drawing