basic tuning, better stuck algorithm