nit: `validConnection = 1;`