changed markup for multiple chart logs
having var scope issues