clean and rebuild