add selector grammar