edge fitting method