finishing up memory logging