better detecting potential traps