tweaks to chart logic syntax