added cat defense functionality