added a netOffset function