why not use the updateFeatureSelection function?