updated pgrownet.cpp