digitizing curves