simplify for memory profiling