added check for featureGroup before adding new data