rebuild and clean