make sure :nth-of-type appears before >