created getPresets function in memory class