changed getconnection