add clean to factory