#3: cleaning before generating