added equals method
only set new style when new style is different from old style