added second setTimeout for demo