made it so the total memory returns a hash