changed back to getEntries