moved getEntry() to Entry class