added d-latch-try