add debug param on fit method