add heap size method