"idf" is a bit confusing, I would have used "funcs" here.