add primary and secondary classes