#386 add condition for sotial type field