add primary/secondary classes