inital model fitting