added logging of total alloc