syntax tweaks to chart logic