refactored relation tree
added hidden flag