added functions to NodeController