network code is working now