add heap and goroutine