adding reconnect function