changed category selector to a more general selector