what are factor affecting resistance?​