updated selector grammar