added flagged points to the feature array for easy retrieval