changed affiliate method form standard conditional to ternary