altered nth-child to class