making the public network easier with variables