add code for bridge