added latch layout