added sleeping to prevent dupes