adding function for test network