updating heap size used