changed register to connect