updated match rule for id and class slectors and added function-content