you can add the connect in the if