removed setTimeout I was using for testing