network check function  added