build function for Moderation