put length checking in FDA.fit()