add getEntries() method