updated example so it doesn't crash.