adding disconnect method