added my checkwifi function