added resetLineClasses()