1st attempt at elliptic fitting