adding script to prune features after they have been generated