selector parsing