improve detection