added rules for feature detecion