tweaks to improve stability