added functions to network