removed unnecessary last point