updated auto-tuning