delete unused latch