optimized female rule and fix to cousin duplicate