updates to fitting
test updated