added goroutine version.