changing paradigm to use node instead of relation