major optimization to not parse selector twice