updated async example