added max_contributors logic