changed checking for empty features and feature generation