cleaned up some cose, working on legend issue where there is cols data but no rows