added latch