adding in memory setting