replace fit! with fit
support arrays as input