adding memory profiler