removed unnecessary network check