getFeatures method updated