add function to fit the full sphere model problem at once