xtal clean up