Adding comment to getIdConnected function