remove dirty spots and fix the center of mass