improving threat detection