adding ref to bgb