updated bridge.c