reset before fit