add getEntry method