improve relation tree