changed from heap2 to heap4