simplified code in EntryType