fix bug in code for bcc