got edh logic working