added sequence for establishing the connection