some basic loop speed tuning