typos, added sleep