changed method name of getting available network type