tweaked BB figure and added code for EE figure