use heap methods instead of self coded methods