consolidate memory