added entry_reduced in memory.py