don't add last point to curve when not needed