improve relation detection