moved node specific methods to nodes model + modified query + proper formatting