pretty much the same method for EK