clean up of surface code