reconnect code worked on