working on network code