cleanup in palette