making content_filter use functions