Two pathways ensuring social harmony