split fit method into fit and online fit