adding memory for compositions