logic tweaks