removed stimulus loop; major speed up