improvement in memory management