bigger (but slower charts), refactoring of var comparator into variable